package com.bcinfo.iccard.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bcinfo.iccard.model.ToMerchantRechargeableCardTotalEarnings;

public interface ToMerchantRechargeableCardTotalEarningsMapper
{
    int deleteByPrimaryKey(Long rechargeableCardEarningsId);

    int insert(ToMerchantRechargeableCardTotalEarnings record);

    int insertSelective(ToMerchantRechargeableCardTotalEarnings record);

    ToMerchantRechargeableCardTotalEarnings selectByPrimaryKey(Long rechargeableCardEarningsId);

    int updateByPrimaryKeySelective(ToMerchantRechargeableCardTotalEarnings record);

    int updateByPrimaryKey(ToMerchantRechargeableCardTotalEarnings record);

    List<ToMerchantRechargeableCardTotalEarnings> selectByMerchant(@Param("merchantCode") String merchantCode,
            @Param("firstIndex") int i, @Param("maxRows") int max);

    int getLastSelectTotalNum();

    ToMerchantRechargeableCardTotalEarnings selectSumByMerchant(String sellerCode);
}